// XPMenu.h: interface for the CXPMenu class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_XPMENU_H__EE2550C4_41A5_4313_8B33_186F4476AD69__INCLUDED_)
#define AFX_XPMENU_H__EE2550C4_41A5_4313_8B33_186F4476AD69__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CXPMenu : public CMenu  
{
public:
	// construction / destruction
	CXPMenu();
	virtual ~CXPMenu();

	// informations for menu items
	struct tagMenuItemInfo{
		UINT    uIdNormal;
		UINT    uIdSelect;
		CString strText;
	};
	// general functions
	void DrawBgClr(CDC* pDC, CRect rect, BOOL bSelected, BOOL bLine);
	void DrawIcon(CDC* pDC, CRect rect, UINT uIdNormal, UINT uIdSelect, BOOL bSelected);
	void DrawText( CDC* pDC, CRect rect, CString sText);

	// virtual functions
	virtual void DrawItem(LPDRAWITEMSTRUCT);
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMIS);
};

#endif // !defined(AFX_XPMENU_H__EE2550C4_41A5_4313_8B33_186F4476AD69__INCLUDED_)
